import { createApp } from "vue";
import router, { setupRouter } from './router';

import { setupStore } from "/@/store/index";
import { setupNaive } from '/@/plugins/index';

import App from "./App.vue";
import './style/tailwind.css';
const meta = document.createElement('meta')
meta.name = 'naive-ui-style'
document.head.appendChild(meta)

const app = createApp(App);
setupStore(app);
// 注册全局常用的 naive-ui 组件
setupNaive(app);
  // 挂载路由
  await setupRouter(app);

  // 路由准备就绪后挂载APP实例
  await router.isReady();

// 把vue挂载到容器
app.mount("#app");
